package com.woniuxy.lrz.carlproject.service;

import com.fasterxml.jackson.core.JsonProcessingException;
import com.woniuxy.lrz.carlproject.controller.form.formgoods.GoodsSkuAOUForm;
import com.woniuxy.lrz.carlproject.model.GoodSku;
import com.baomidou.mybatisplus.extension.service.IService;
import com.woniuxy.lrz.carlproject.service.dto.dtogoods.GoodsSkuDto;
import com.woniuxy.lrz.carlproject.service.dto.dtogoods.GoodsSkuPropertyItem;

import java.util.ArrayList;
import java.util.List;

/**
 * <p>
 * 商品sku表 服务类
 * </p>
 *
 * @author lrz
 * @since 2022-09-28
 */
public interface GoodSkuService extends IService<GoodSku> {

    boolean addOrUpdateGoodsSku(GoodsSkuAOUForm goodsSkuAOUForms) throws JsonProcessingException;

    boolean deleteGoodsSku(Integer skuId);

    List<GoodsSkuDto> findGoodsSku(Integer goodId) throws JsonProcessingException;

    List<GoodsSkuPropertyItem> loadAllPropertys(Integer goodCategoryId);
}
